<!-- Begin assets/new.tpl -->
<form method="post" action="?module=assets&action=new&gid={$smarty.get.gid}">

{titlebar colspan=2 title=$lg->new_asset}

   <tr>
     <td align="center">
       <table border="0" cellspacing="1" cellpadding="3" width="100%">
         <tr>
   <td align="right" >

{opentable}


<tr>
<td class="sectiontableentry2" width="30%" align="right" valign="middle"><span class="required">*</span>{$lg->short_description}</td>
<td class="sectiontableentry1" width="70%"><input type="text" size="50" maxlength="255" name="asset" value="{$smarty.post.asset|stripslashes}" /></td>
</tr>

<tr>
<td class="sectiontableentry2" width="30%" align="right" valign="middle">{$lg->serial}</td>
<td class="sectiontableentry1" width="70%"><input type="text" size="32" maxlength="100" name="serial" value="{$smarty.post.serial|stripslashes}" /></td>
</tr>

<tr>
<td class="sectiontableentry2" width="20%" align="right" valign="middle"><span class="required">*</span>{$lg->category}</td>
<td class="sectiontableentry1" width="80%">
<select name="typeid" style="width: 30%;">
<option value="">(Select.)</option>
{if is_array($atypes)}
{foreach from=$atypes key=tid item=type}
<option value="{$tid}"{if $tid eq $asset.typeid} selected="selected"{/if}>{$type}</option>
{/foreach}
{/if}
</select>
</td>
</tr>

<tr>
<td class="sectiontableentry2" width="30%" align="right" valign="middle">{$lg->purch_value}</td>
<td class="sectiontableentry1" width="70%"><input type="text" size="32" maxlength="32" name="cost" value="{$smarty.post.cost}" /></td>
</tr>

<tr>
<td class="sectiontableentry2" width="30%" align="right" valign="middle">{$lg->date_in}</td>
<td class="sectiontableentry1" width="70%">{date_select name="date_in" value=$smarty.post.date_in|userdate}</td>
</tr>

<!--
<tr>
<td class="sectiontableentry2" width="30%" align="right" valign="middle">{$lg->date_out}</td>
<td class="sectiontableentry1" width="70%"><input type="text" size="12" maxlength="10" name="date_out" value="{$smarty.post.date_out}" /></td>
</tr>
-->

<tr>
<td class="sectiontableentry2" width="20%" align="right" valign="middle">{$lg->status}</td>
<td class="sectiontableentry1" width="80%">
<select name="statusid" style="width: 30%;">
<option value="">(Select.)</option>
{if is_array($astatuses)}
{foreach from=$astatuses key=sid item=status}
<option value="{$sid}"{if $sid eq $asset.statusid} selected="selected"{/if}>{$status}</option>
{/foreach}
{/if}
</select>
</td>
</tr>

<tr>
<td class="sectiontableentry2" width="30%" align="right" valign="middle">{$lg->note}</td>
<td class="sectiontableentry1" width="70%"><textarea rows="10" cols="60" name="notes" style="width: 99%;">{$smarty.post.notes|stripslashes}</textarea></td>
</tr>

<tr class="titlebar"><td colspan="2"><input type="submit" class="button" value={$lg->save} /></td></tr>

</table>
</form>

<div style="text-align: left; margin: 4px;"><span class="required">*</span> {$lg->required_fields}</div>

</table>
</table>

<!-- End assets/new.tpl -->

